package com.mql.mall.mallauthserve.MemberFeign;

import com.mql.mall.mallauthserve.Entity.MemberEntity;
import com.mql.mall.mallauthserve.vo.UserLoginVo;
import com.mql.mall.mallauthserve.vo.UserRegisterVo;
import com.mql.mall.mallcommon.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("mall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVo userRegisterVo);
    @PostMapping("/member/member/login")
    public R login(@RequestBody UserLoginVo userLoginVo);
    @PostMapping("/member/member/thirdRegister")
    public R thirdRegister(@RequestBody MemberEntity memberEntity);
}
